package com.tcm.ucenter.mapper;

import com.tcm.ucenter.domain.entity.Patient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PatientMapper {
    int deleteById(Long id);

    int deleteLogicById(Long id);

    int insert(Patient record);

    Patient findById(Long id);

    int update(Patient record);

    List<Patient> listByUserId(Long userId);

    Patient findByUserPhone(@Param("userId") Long userId, @Param("phone") String phone, @Param("name") String name);

    Patient findByIdNamePhone(@Param("id") Long id, @Param("phone") String phone, @Param("name") String name);
}